home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / include / ds3100.md / sys / dmap.h < prev    next >
C/C++ Source or Header  |  1991-09-12  |  682b  |  30 lines

  1. /* @(#)dmap.h    4.1.1.1  (ULTRIX)        1/28/88     */
  2.  
  3. /*
  4.  * Definitions for the mapping of virtual swap
  5.  * space to the physical swap area - the disk map.
  6.  */
  7.  
  8. #define    NDMAP         48    /* size of the swap area map */
  9.  
  10. struct    dmap
  11. {
  12.     swblk_t    dm_size;    /* current size used by process */
  13.     swblk_t    dm_alloc;    /* amount of physical swap space allocated */
  14.     swblk_t    dm_map[NDMAP];    /* first disk block number in each chunk */
  15. };
  16. #ifdef KERNEL
  17. struct    dmap zdmap;
  18. int    dmmin, dmmax, dmtext;
  19. #endif
  20.  
  21. /*
  22.  * The following structure is that ``returned''
  23.  * from a call to vstodb().
  24.  */
  25. struct    dblock
  26. {
  27.     swblk_t    db_base;    /* base of physical contig drum block */
  28.     swblk_t    db_size;    /* size of block */
  29. };
  30.